package com.example.demo.thread.state;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 14:15 2020/5/29
 * @Modified By:
 */
public class InterruptTest2 {
    public static void main(String[] args) throws InterruptedException {
        MyThread thread = new MyThread();
        thread.start();
        thread.join();
        System.out.println(thread.getState());
        thread.interrupt();
        System.out.println(thread.isInterrupted());
        System.out.println(thread.isAlive());
    }
}
